import request from '@/utils/request'

function findArticles(start, limit, data) {
  return request({
    url: `/lejuAdmin/productArticle/findArticles/${start}/${limit}`,
    method: 'post',
    data
  })
}

function del(id) {
  return request({
    url: `/lejuAdmin/productArticle/del/${id}`,
    method: 'delete'
  })
}

function changeShowStatus(data) {
  return request({
    url: '/lejuAdmin/productArticle/changeShowStatus',
    method: 'post',
    data
  })
}

export {
  findArticles,
  del,
  changeShowStatus
}
